import axios from './axios';


export function productDetail(data) {
    return axios({
        method: 'get',
        url: '/goods/detail',
        params: data
    })
}

export function related(data) {
    return axios({
        method: 'get',
        url: '/goods/related',
        params: data
    })
}

export function goodscount(data) {
    return axios({
        method: 'get',
        url: '/cart/goodscount',
        params: data
    })
}


export function cartadd(data) {
    return axios({
        method: 'post',
        url: '/cart/add',
        data
    })
}